package com.lkc.mapper;

import com.lkc.bean.Categories;
import com.lkc.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CategoriesDao {
    int add(@Param("param") Categories categories );
    int del(@Param("id") Integer categoryId);
    int edit(@Param("param") Categories categories);
    Categories one(@Param("id") Integer categoryId);
    List<Categories> all(@Param("param") Categories categories);
    int pageCount(@Param("param") Categories categories);
    List<Categories> page(@Param("page") Page page, @Param("param") Categories categories);
}
